
echo doing...
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian"
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "release"&&OS="RedHat"
wget -q https://s.xabcloud.com/src/redis.tgz -O -|tar xzf - -C /tmp
mv /tmp/redis/files/redis-$OS /opt/redis
rm -rf /tmp/redis/
mkdir -p /opt/redis/conf
wget -q https://s.xabcloud.com/file/redis.conf -O /opt/redis/conf/redis.conf
chmod 100 /opt/redis/bin/*
echo "/opt/redis"
